package com.project.service;

import com.project.entity.Feedback;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 13:48
 * @param:
 * @return:
 */
public interface FeedBackService {
    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 添加单条记录
     *
     * @param feedback
     * @return
     */
    int addOne(Feedback feedback);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 根据id删除单条记录
     *
     * @param id
     * @return
     */
    int removeOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 根据id修改单条记录
     *
     * @param feedback
     * @return
     */
    int modifyOneById(Feedback feedback);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 根据id查找单条记录
     *
     * @param id
     * @return
     */
    Feedback findOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/10/22
     * function: 查找全部
     *
     * @return
     */
    List<Feedback> findAll();

    /**
     * author: WheelChen
     * date: 2017/10/24
     * function:
     *
     * @param feedback
     * @return
     */
    List<Feedback> findBatchByAllCondition(Feedback feedback);
}
